package com.chen.blog.mapper;

import com.chen.blog.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author cgj
 * @date 1/20/25 10:48 AM
 */
@Mapper
public interface ArticleMapper {
//    传递对象, 方便进行 条件查询
    List<Article> selectAllByArticle(Article article);
     Article selectArticleById(Integer id);
    List<Article>  selectArticlesByUid(Integer uid);
    Integer  updateArticle(Article article);
    Integer insertArticle(Article article);
    Integer deleteArticleById(Integer id);
}
